package org.coder.boot.provider;


import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Method;
import org.coder.api.EchoService;

/**
 * @description:
 * @author: coder97
 * @since: 2021/03/15
 */
@DubboService(methods = {@Method(name = "echo",timeout = 1000)})
public class EchoServiceImpl implements EchoService {

    @Override
    public String echo(String message) {
        try {
            Thread.sleep(1200);
        } catch (InterruptedException e) {
            System.out.println("timeout......");
        }
        System.out.println("come in springboot "+message);
        return "springboot handler -"+message;
    }
}